//
//  File.swift
//  Employee
//
//  Created by tancheng on 2018/6/21.
//  Copyright © 2018年 remotevillage. All rights reserved.
//

import Foundation

extension UIView {
    
    @IBInspectable
    public var borderWith: CGFloat {
        set {
            layer.borderWidth = newValue
        }
        
        get {
            return layer.borderWidth
        }
        
    }
    
    @IBInspectable
    public var borderColor: UIColor {
        
        set {
            layer.borderColor = newValue.cgColor
        }
        
        get {
            return UIColor(cgColor: layer.borderColor!)
        }
        
    }
    
    @IBInspectable
    public var cornerRadius: CGFloat {
        
        set {
            layer.cornerRadius = newValue
            layer.masksToBounds = true
        }
        
        get {
            return layer.cornerRadius
        }
        
    }
    
    
    
}
